  <jsp:include page="../common/header.jsp" />
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

                    <div id="page-wrapper">
            <div class="row">
                <div class="col-lg-12">                    
      <div id="content-header"> 
		  <h1>Student Details</h1>
		  <h3>View Details</h3>
		  <div id="app-back-button">							
		    <a onclick="history.back(); return false;" href="#"><button class="btn btn-primary btn-lg" type="button">Back</button></a>
		  </div>		  
		 <hr>
		</div>
               
                <div class="col-lg-3">
                                      <form role="form" action="saveWeekday.htm" method="post">
                                   
                                       <div class="form-group">
                                            <label>Selects Class</label>
                                            <select class="form-control" name="classId" id="classId" onchange="setSectionId(this);">
									            <option value="">Select</option>
									            <c:forEach var="section" items="${sectionList}">
									            <option value="${section.sectionId}">${section.clas.name} - ${section.name}</option>									            
									            </c:forEach>
                                            </select>
                                        </div>
                                        
                                        <br >
                                        <div align="center">
                                        <button type="submit" class="btn btn-primary">Save</button>                                        
                                        </div>
                                        <input name="status" type="hidden" value="1" />
                                        <input name="sectionId" type="hidden" value="" />
                                         
                                    </form>
                </div>
                
                <!-- /.col-lg-12 -->
            </div>
        </div>
        
        <div class="row">
        <div id="render_area">
<div id="timetable">
  <div id="box">
    <table width="100%" cellspacing="0" border="0" align="center" id="table">
      <tbody>
      
      <tr>
        <td><div class="blank"></div></td>
        <td><div class="blank"></div></td>
        
          <td class="td"><div class="top">08:00AM - 12:00PM</div></td>        
          <td class="td"><div class="top">01:40PM - 03:40PM</div></td>       
        
        </tr>
        
        
        
        <tr>
          <td class="td"><div class="name">MONDAY</div></td>
          <td class="td-blank"></td>
          
            
            <td class="td">
              <div onclick="update_selected_divs('1_4');" class="drop" id="drop_1_4">
                <div id="subject_name_69977119997180" class="tt-subject">
                  
                    <div class="subject"></div>
                    <div class="employee"></div>
                  
                </div>
              </div>
                          </td>
          
            
            <td class="td">
              <div onclick="update_selected_divs('1_6');" class="drop" id="drop_1_6">
                <div id="subject_name_69977119992920" class="tt-subject">
                  
                    <div class="subject"></div>
                    <div class="employee"></div>
                  
                </div>
              </div>
                          </td>
          
        </tr>
      
        <tr>
          <td class="td"><div class="name">TUESDAY</div></td>
          <td class="td-blank"></td>
          
            
            <td class="td">
              <div onclick="update_selected_divs('2_4');" class="drop" id="drop_2_4">
                <div id="subject_name_69977119968480" class="tt-subject">
                  
                    <div class="subject"></div>
                    <div class="employee"></div>
                  
                </div>
              </div>
                          </td>
          
            
            <td class="td">
              <div onclick="update_selected_divs('2_6');" class="drop" id="drop_2_6">
                <div id="subject_name_69977119964300" class="tt-subject">
                  
                    <div class="subject"></div>
                    <div class="employee"></div>
                  
                </div>
              </div>
                          </td>
          
        </tr>
      
        <tr>
          <td class="td"><div class="name">WEDNESDAY</div></td>
          <td class="td-blank"></td>
          
            
            <td class="td">
              <div onclick="update_selected_divs('3_4');" class="drop" id="drop_3_4">
                <div id="subject_name_69977119952140" class="tt-subject">
                  
                    <div class="subject"></div>
                    <div class="employee"></div>
                  
                </div>
              </div>
                          </td>
          
            
            <td class="td">
              <div onclick="update_selected_divs('3_6');" class="drop" id="drop_3_6">
                <div id="subject_name_69977119947900" class="tt-subject">
                  
                    <div class="subject"></div>
                    <div class="employee"></div>
                  
                </div>
              </div>
                          </td>
          
        </tr>
      
        <tr>
          <td class="td"><div class="name">THURSDAY</div></td>
          <td class="td-blank"></td>
          
            
            <td class="td">
              <div onclick="update_selected_divs('4_4');" class="drop" id="drop_4_4">
                <div id="subject_name_69977119935340" class="tt-subject">
                  
                    <div class="subject"></div>
                    <div class="employee"></div>
                  
                </div>
              </div>
                          </td>
          
            
            <td class="td">
              <div onclick="update_selected_divs('4_6');" class="drop" id="drop_4_6">
                <div id="subject_name_69977119931440" class="tt-subject">
                  
                    <div class="subject"></div>
                    <div class="employee"></div>
                  
                </div>
              </div>
                          </td>
          
        </tr>
      
        <tr>
          <td class="td"><div class="name">FRIDAY</div></td>
          <td class="td-blank"></td>
          
            
            <td class="td">
              <div onclick="update_selected_divs('5_4');" class="drop" id="drop_5_4">
                <div id="subject_name_69977119919500" class="tt-subject">
                  
                    <div class="subject"></div>
                    <div class="employee"></div>
                  
                </div>
              </div>
                          </td>
          
            
            <td class="td">
              <div onclick="update_selected_divs('5_6');" class="drop" id="drop_5_6">
                <div id="subject_name_69977119915920" class="tt-subject">
                  
                    <div class="subject"></div>
                    <div class="employee"></div>
                  
                </div>
              </div>
                          </td>
          
        </tr>
      
      
    </tbody></table>
  </div>
  <h4>Add Subjects/Employee</h4>
  <div id="subjects-select">
    <div class="label-field-pair">
      <div class="text-input-bg">
        
        
        <select onchange="Element.show('loader'); new Ajax.Updater('employee-list', '/timetable_entries/update_employees', {asynchronous:true, evalScripts:true, onSuccess:function(request){Element.hide('loader')}, parameters:'subject_id='+value + '&amp;authenticity_token=' + encodeURIComponent('b0r9QCNWKew2swymaoAj9kJt+tc42Bg82PAvx09iIaA=')})" name="timetable_entries[subject_id]" id="timetable_entries_subject_id"><option value="">Select Subject</option>
<option value="1">HIndi</option>
<option value="2">English</option>
<option value="3">Math</option></select>
      </div>
    </div>
    <div id="employee-list"></div>
  </div>
</div>

</div>
        </div>
        
        
 </div>
<jsp:include page="../common/footer.jsp" />
